* Firm organization with multiple establishments
* Section III.C: Appendix Table B.20

clear all 
set matsize 4000
set more off

capture log close
log using log/18_facts-p_dynMEorg_layer-est.log, replace

use data/MEorg_2000-2010_p_layer-est_transition.dta, clear

********************************************************************************
***	Table B.20: Transition dynamics of the managerial organization 

***	Upper panel: firm-level
tab2 count_mgmt_unt f_count_mgmt_unt if count_est > 1, m
tab2 count_mgmt_unt f_count_mgmt_unt if count_est > 1, m row nofreq

***	Lower panel: headquarters/establishment
tab2 organization f_organization if count_est > 1 & count_mgmt_bet1 >= count_mgmt_bet0, m
tab2 organization f_organization if count_est > 1 & count_mgmt_bet1 >= count_mgmt_bet0, m row nofreq

erase "data/MEorg_2000-2010_p_layer-est_transition.dta"

log close
